package com.heima.apis.admin;


import com.heima.model.admin.dtos.AdUserDto;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;

@Api(value = "admin用户模块", tags = "admin用户模块")
public interface LoginControllerApi {

    /**
     * admin登录功能
     * @param dto
     * @return
     */
    @ApiOperation("admin登录")
    public ResponseResult login(@RequestBody AdUserDto dto);


    /**
     * admin注册功能
     * @param dto
     * @return
     */
    @ApiOperation("admin注册")
    public ResponseResult register(@RequestBody AdUserDto dto);
}